package com.lin.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.subject.infra.basic.entity.SubjectLabel;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)表服务接口
 *
 * @author makejava
 * @since 2024-10-19 23:53:29
 */
public interface SubjectLabelService extends IService<SubjectLabel> {

    int add(SubjectLabel subjectLabel);

    int update(SubjectLabel subjectLabel);

    int delete(Long subjectLabel);

    List<SubjectLabel> queryLabelByCategoryId(String categoryId);

    /**
     * 根据ids,查询列表
     * @param labelIds
     * @return
     */
    List<SubjectLabel> batchQueryById(List<Long> labelIds);

    List<SubjectLabel> queryByCondition(SubjectLabel subjectLabel);

    /**
     * 根据条件查询标签列表
     * @param subjectLabel
     * @return
     */
    List<SubjectLabel> findListByCondition(SubjectLabel subjectLabel);
}

